#include <stdio.h>
enum Color
{
	RED,
	GREEN,
	BLUE
};

struct Student
{
	int age;
	float score;
	double height;
};

union Data
{
	char a;
	int b;
	float c;
	char d[20];
};

int main()
{
	printf("char  类型的长度为个%ld字节\n",sizeof(char));
	printf("int   类型的长度为个%ld字节\n",sizeof(int));
	printf("float 类型的长度为个%ld字节\n",sizeof(float));
	printf("double 类型的长度为个%ld字节\n",sizeof(double));
	printf("short 类型的长度为个%ld字节\n",sizeof(short));
	printf("long int 类型的长度为个%ld字节\n",sizeof(long int));
	printf("enum color 类型的长度为个%ld字节\n",sizeof(enum Color));
	printf("struct Student类型的长度为个%ld字节\n",sizeof(struct Student));
	printf("union Data类型的长度为个%ld字节\n",sizeof(union Data));
	return 0;
}
